﻿
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - GPS</title>
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryui")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/angular")
    @*<link href="@Url.Content("~/Content/themes/base/minified/jquery-ui.min.css")" rel="stylesheet" />
        <script src="@Url.Content("~/Scripts/jquery-2.1.0.min.js")"></script>
        <script src="@Url.Content("~/Scripts/jquery-ui-1.10.4.min.js")"></script>*@
    @*@Scripts.Render("~/Content/my-themes")*@
    @*@Styles.Render("~/Content/themes/base/css")*@

    <script type="text/javascript">
        $(function () {
            $('.date-picker').datepicker();
        })
    </script>
</head>
<body>

    <div class="navigation-container">
        <!--div banner-->
        <div class="logo-wrap" id="banner">
            <div>
                <img src="~/fonts/bannerSoGTVT.png">
                @Html.Partial("_LoginPartial")
            </div>
            <!--div Login-->
            <div>

            </div>
            <!--End div Login-->
        </div>
        <!--end of div banner-->
        <!--Menu top-->
        <div class="navbar navbar-default navbar-static-top" role="navigation" id="topnavbar">
            <div class="container-fluid">
                <div class="container-fluid">
                    <div class="navbar-header">
                        @*<a class="navbar-brand" href="#">Brand</a>*@
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-menubuilder">
                            <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                        </button>
                    </div>
                    <div class="collapse navbar-collapse navbar-menubuilder">
                        <ul class="nav navbar-nav navbar-left">
                            @if (User.Identity.IsAuthenticated)
                            {
                                if (Session["MyMenu"] == null)
                                {

                                    Session["MyMenu"] = @Html.Partial("~/Views/Shared/_FDBMenu.cshtml");
                                }
                                @Session["MyMenu"]

                                if (Session["lstMenu"] != null)
                                {
                                    string _URL = Request.Url.AbsolutePath;
                                    int _count = _URL.Count(f => f == '/');
                                    int fIndex = _URL.IndexOf('/');
                                    int indexSecond = _URL.IndexOf('/', _URL.IndexOf('/') + 1);
                                    int lIndex = _URL.LastIndexOf('/');
                                    _URL = _count > 1 ? _URL.Substring(fIndex + 1, indexSecond - 1) : _URL;

                                    List<GPS.MODELS.MenuItem>
                                        _lstMenu = Session["lstMenu"] as List<GPS.MODELS.MenuItem>
                                            ;
                                }


                            }
                        </ul>
                    </div>
                </div>

                @*<div class="navbar-collapse collapse navbar navbar-default">
                        <!--div Menutop-->
                        <ul class="nav navbar-nav"></ul>
                        <!--End div Menutop-->

                    </div>*@
            </div>
        </div>
        <!--End of Menutop-->
    </div>
    @*<div class="container body-content">*@
        @{ Html.RenderPartial("_Alerts"); }     <!--Doan nay de nhung phan Alert -->
        @{ Html.RenderPartial("_Notify"); }     <!--Doan nay de nhung phan Notify -->
        @RenderBody()
    @*</div>*@


    <footer class="footer-distributed">
        <div class="footer-left">
            Hệ thống đào tạo giấy phép lái xe quản lý địa bàn Nghệ An
            <div class="ftext">Cơ quan chủ quản: Sở Giao Thông Vận Tải Tỉnh Nghệ An</div>
            <div class="ftext">Cơ quan quản lý hệ thống: Sở Giao Thông Vận Tải Tỉnh Nghệ An</div>
            <div class="ftext">Chịu trách nhiệm: Giám Đốc Sở Giao Thông Vận Tải Tỉnh Nghệ An</div>

            <p class="footer-links">
                <a href="#">Home</a>
                ·
                <a href="#">About</a>
                ·
                <a href="#">Faq</a>
                ·
                <a href="#">Contact</a>
            </p>
            <p class="footer-company-name">&copy; @DateTime.Now.Year GTVT Vietnam</p>
        </div>
        <div class="footer-center">
            <div>
                <i class="fa fa-map-marker"></i>
                <p>
                    <span>Số 47 đường Lê Hồng Phong</span>TP Vinh, Nghệ Anh
                </p>
            </div>
            <div>
                <i class="fa fa-phone"></i>
                <p>+84.4.66805011</p>
            </div>
            <div>
                <i class="fa fa-envelope"></i>
                <p><a href="mailto:gtvt@nghean.gov.vn">gtvt@nghean.gov.vn</a></p>
            </div>
        </div>
        <div class="footer-right">
            <p class="footer-company-about">
                <span>Tổng quan hệ thống</span>
                Hệ thống giúp thực hiện hiệu quả công tác thu thập số liệu, thống kê báo cáo trong lĩnh vực đào tạo lái xe tỉnh Nghệ An
            </p>
            @*<div class="footer-icons">
                    <a href="#"><i class="fa fa-facebook"></i></a>
                    <a href="#"><i class="fa fa-twitter"></i></a>
                    <a href="#"><i class="fa fa-linkedin"></i></a>
                    <a href="#"><i class="fa fa-github"></i></a>
                </div>*@

            <div class="footer-icons">
                <a href="[full link to your Twitter]">
                    <img title="Twitter" alt="Twitter" src="~/fonts/twitter.png" width="35" height="35" />
                </a>
                <a href="[full link to your Pinterest]">
                    <img title="Pinterest" alt="Pinterest" src="~/fonts/pinterest.png" width="35" height="35" />
                </a>
                <a href="[full link to your Facebook page]">
                    <img title="Facebook" alt="Facebook" src="~/fonts/facebook.png" width="35" height="35" />
                </a>
                <a href="mailto:[email address]">
                    <img title="Email" alt="Email" src="~/fonts/email.png" width="35" height="35" />
                </a>
                <a href="[full link to your RSS feed]">
                    <img title="RSS" alt="RSS" src="~/fonts/rss.png" width="35" height="35" />
                </a>
            </div>
        </div>
    </footer>

    <div id="fdb-scroll" class="a-scroll-to" style="display: none;">
        <ul>
            <li><a href="#" class="scroll-top top" title="Lên đầu"></a></li>
        </ul>
    </div>


    @RenderSection("scripts", required: false)

    <script type="text/javascript">
        $(document).ready(function () {
            $('.js-activated').dropdownHover().dropdown();


            var offset = $('#fdb-scroll').offset();
            $(window).scroll(function () {
                var scrollTop = $(window).scrollTop();
                // check the visible top of the browser
                if (offset.top < scrollTop) {
                    //$('#fdb-scroll').addClass('fixed');
                    $('#fdb-scroll').css({ 'display': 'block' })
                } else {
                    //$('#fdb-scroll').removeClass('fixed');
                    $('#fdb-scroll').css({ 'display': 'none' })
                }
            });
        });
    </script>

</body>
</html>
